package com.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.mapper.UserDao;
import com.domain.Pomr;
import com.service.UserService;
@Service(value="userService")
public class UserServiceImpl implements UserService{

	@Autowired
	UserDao userDao;
	
	@Override
	public List<Pomr> getUser(Map<String,Object> params) {
		
		return userDao.getUser(params);
	}
	
	public int getCountOfUser(){
		
		return userDao.getCountOfUser();
	}
	
	public void addUser(Pomr user){
		userDao.addUser(user);
	}

	public void deleteUser(int uid){
		userDao.deleteUser(uid);
	}
	
}
